package com.emr.module.service.impl;


import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.emr.module.mapper.ZhikongMapper;
import com.emr.module.domain.Zhikong;
import com.emr.module.service.IZhikongService;
import com.emr.common.support.Convert;

/**
 * 病历质控 服务层实现
 * 
 * @author emr
 * @date 2019-03-01
 */
@Service
public class ZhikongServiceImpl implements IZhikongService 
{
	@Autowired
	private ZhikongMapper zhikongMapper;

	/**
     * 查询病历质控信息
     * 
     * @param id 病历质控ID
     * @return 病历质控信息
     */
    @Override
	public Zhikong selectZhikongById(Integer id)
	{
	    return zhikongMapper.selectZhikongById(id);
	}
	
	/**
     * 查询病历质控列表
     * 
     * @param zhikong 病历质控信息
     * @return 病历质控集合
     */
	@Override
	public List<Zhikong> selectZhikongList(Zhikong zhikong)
	{
	    return zhikongMapper.selectZhikongList(zhikong);
	}
	
    /**
     * 新增病历质控
     * 
     * @param zhikong 病历质控信息
     * @return 结果
     */
	@Override
	public int insertZhikong(Zhikong zhikong)
	{
	    return zhikongMapper.insertZhikong(zhikong);
	}
	
	/**
     * 修改病历质控
     * 
     * @param zhikong 病历质控信息
     * @return 结果
     */
	@Override
	public int updateZhikong(Zhikong zhikong)
	{
	    return zhikongMapper.updateZhikong(zhikong);
	}

	/**
     * 删除病历质控对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteZhikongByIds(String ids)
	{
		return zhikongMapper.deleteZhikongByIds(Convert.toStrArray(ids));
	}
	
}
